package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class JuiceMaker {
    String brand;
    String color;
    int watt;//瓦特
    public void show(){
        System.out.println("这是一台榨汁机");
        System.out.println("颜色是"+color+",牌子是"+brand);
        System.out.println("功率是"+watt+"瓦");

    }
    ///榨汁
    public String makeJuice(String fruit){
        System.out.println("接通电源");
        System.out.println("刀片开始高速转动，切割"+fruit);
        System.out.println("切碎了");
        return fruit+"汁";
        //System.out.println("榨好了");
    }
    public String makeJuice2(String fruit,String fruit2){
        System.out.println("接通电源");
        System.out.println("刀片开始高速转动，切割"+fruit+"和"+fruit2);
        System.out.println("切碎了");
        return fruit+fruit2+"汁";
        //System.out.println("榨好了");
    }
}
